Cloud-based streaming data receiver and persister

ABSTRACT

The present system receives streaming raw data and inserts context into the raw data. The context raw data may be partitioned into sub-batches and transmitted to a data receiver and persister. The raw data may include context information as well as child-parent information to assist with persisting data. The context may be used to place the data in buckets without analysis of the data, thereby saving time and resources while storing the data batches.

BACKGROUND

Businesses must process large amounts of data to make decisions and be successful. The data is often provided in formats such as reports. To build a meaningful report, businesses are relying on multi-tenanted SAAS analytic companies. Building and providing meaningful analytics typically requires a large amount of resources and has a high cost.

Building the reports typically requires acquiring data, transforming the data to a meaningful format, and performing analytics of the meaningful data to generate the report. Data storage, transformation and manipulation require data schemas to store the data, transform the data and process the data. These tasks are typically performed manually by administrators. Currently, there is no cloud-based solution that connects data sources and continually feeds a data receiver with data other than raw data.

SUMMARY

The present system receives streaming raw data and inserts context into the raw data. The context raw data may be partitioned into sub-batches and transmitted to a data receiver and persister. The raw data may include context information as well as child-parent information to assist with persisting data. The context may be used to place the data in buckets without analysis of the data, thereby saving time and resources while storing the data batches.

In an embodiment, a method for streaming data may be with receiving raw streaming data from a plurality of applications. Context data may be associated with a batch of the raw data. The batch of raw data and corresponding context data may then be transmitted to a remote server.

In an embodiment, a system for communicating navigation data may include a memory, a processor, and one or more modules stored in memory and executable by the processor. The modules may be executed to receive raw streaming data from a plurality of applications, associate context data to a batch of the raw data, and transmit the batch of raw data and corresponding context data to a remote server.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram of an exemplary data streaming system.

FIG. 2 is exemplary method for receiving and persisting data.

FIG. 3 is an exemplary method for associating context with raw data.

FIG. 4 is an exemplary method for persisting data.

FIG. 5 is an exemplary method for automatically updating a data mapping architecture.

FIG. 6 is an exemplary method for mapping data.

FIG. 7 is a block diagram of a device for implementing the present technology.

DETAILED DESCRIPTION

The present system receives streaming raw data and inserts context into the raw data. The context raw data may be partitioned into sub-batches and transmitted to a data receiver and persister. The raw data may include context information as well as child-parent information to assist with persisting data. The context may be used to place the data in buckets without analysis of the data, thereby saving time and resources while storing the data batches.

The batches may be tenant specific, application specific, and grouped into context aware sub-groups for parallel processing. The context is stored in a record and processed with the batch, so applications processing the data do not need any intelligence regarding the batch data. The context allows for quick, stateless processing and complete data isolation for multiple applications and multiple tenants.

The context also provides for parallel persistence of groups of records. The present system does not need to process the data to figure out how to store the data (e.g., how to bucket the data). Rather, the context is stored in record format, for example within a table, and contains schema metadata having context data and parent-child data for the batch data. There is no dynamic mapping of a record to a schema. The target schema may be resolved based on tenant information and application information, and may be resolved dynamically on the fly. Hence, if record A and record B arrive at the same time from tenant A and tenant B, the system will dynamically resolve the data source for the records based on the tenant and application info. Record A can be persisted in a Hadoop/HBase data store whereas record B can be stored into MySQL. Thus, the present system is not only schema-agnostic but supports polygot persistence through dynamic data source resolution.

One or more embodiments may utilize all or part of a process as follows. A data-flow initiation message may be received from a data provider/connector, such as a cloud-based data integrator. Upon receiving the initiation message, the system may build a context (TenantInfo, AppInfo, TimingInfo, BatchInfo etc.) and send back the context info to the data provider which then inserts context into the raw data, thus making the data intelligent. The context-aware raw data may be partitioned into sub-batches and transmitted in parallel to a data receiver and persister. The raw data may include additional context information as well as child-parent information to assist with persisting data. In some embodiments, the present system can automatically discover and create schema based on the streaming data. The context may be used to place the data in buckets without analysis of the data, thereby saving time and resources while storing the data batches. By virtue of the contextual info, the data may be automatically shared by parameters such as tenant information, application information, batch information and timing information thereby saving persistence overheads. In some embodiments, the present system may be completely stateless and may not know what source is sending what data as well as when and how data-sets are related, and where the data is stored.

In embodiments, data may include information to indicate a tenant, application, location and relationship associated with the data. In this context, the data may be tenant-aware, application-aware, location-aware, and relationship-aware. In some embodiments, at some stage of data flow or in the event of a failure (1>flow initiation, 2>send data 3>flow termination) an integration server may send a flow termination signal (Success/Failure) so that the present system can update the status of the context for the specific batch, application and tenant. The fact that the history of context information may be stored into a separate metadata store may provide that any failed integration process upon restart will reuse the context information of the last successful batch and will fetch the data from the correct time-window. The contextual information also contains a sliding time-window such that any past batch within a time-window can be replayed in the future for data recovery from a source or target persistence store. Independent probing of contextual metadata may allow proactive error-discovery, data-usage discovery, elastic storage increase, automatic ramp-up of processing bandwidth without affecting the main streaming data collection and persistence flow. Automatic storage provision and schema discovery based on contextual info may automatically route or reroute incoming data-streams to a data store.

The scalable, non-invasive protocol-based technology can be implemented to take care of many types of business scenarios. These scenarios include integrating with disparate business applications, instant business analytics and visualization, mash up data from heterogeneous sources, real-time business alerts, business decision making and predictive analysis, cloud-based business data backup and restoration, an managing the warehouse for disparate business data by leveraging features of the present technology. The leveraged features may include contextual intelligence (injected into data), complete data isolation, data sharing, data scalability, contextual rollback, contextual backup, ordering, auto-restartability, data-replay (time-machine), pro-active error-recovery, contextual view (app-specific/tenant-specific/batch-specific/time-rang specific), contextual analysis (data consumption pattern for tenants/apps/objects), and automatic schema generation.

FIG. 1 is a block diagram of an exemplary data streaming system. The system of FIG. 1 includes tenant servers 110 and 115, tenant client 120, integration server 125, data collection server (DCS) 130, staging database 135, extract-transform-load (ETL) server 140, warehouse database 145, analytics server 150 and client device 155. Each of devices 110-155 may communicate with each other over a network (not shown). The network may be implemented as a private network, public network, Wi-Fi network, WAN, LAN, an intranet, the Internet, a cellular network, or a combination of these networks.

Servers 110 and 115 and client device 120 may each be associated with a tenant (client organization) in a multitenancy. Each tenant of the multi-tenancy may include one or more servers and client devices. Each server and client may include data to be collected by data collection server 130 via integration server 125. Client device 120 may be implemented as a desktop, laptop, notebook, tablet computer, smart phone, or some other computing device.

In some embodiments, the present technology is served seamlessly from a “cloud” (e.g., resources provided from over a network) from a single access point, such as a multi-tenant SaaS cloud website, and the entire flow can be experienced from any type of client device. This unique approach saves multiple types of infrastructural costs for different types of software and hardware to implement data integration, data collection and persistence, data analysis and visualization.

In embodiments, integration server 125 may communicate with different SAAS providers, whether provided from a cloud or a particular machine, and communicate with data collection server 130. Integration server may include one or more modules for implement aspects of the present technology. Insertion module 126 may insert context data and child-parent associated with a data batch into a table. The context data may include information such as application ID, batch ID, tenant ID, and may include a sliding window of time, such as a time range, for which to fetch data. The batch data which includes context may become application aware, tenant aware, and context aware. The insertion module may also insert parent and child information, such as whether the current batch, batch sub-set or record is a child or parent of another batch, sub-set or record. When data includes the parent-child data, it becomes persistence ready. Integration server 125 may send stateless data in batch subsets in parallel to data collection server 130.

Data collection server 130 may collect data from one or more tenant applications on devices 110-120 through integration server 125 and store the data in a staging database 135. The Data collection server may send batch instructions to integration server 125 in response to receiving a start batch request. The instructions may include the context information to be inserted into the data table for one or more batches. Once the batch subset data is received, the data may be persisted persist module 131 on data collection server 130. The data collection server may act as a streaming data receiver and persister (SDRP).

Data collection server may provide any portion of the staging data to ETL server 140, for example upon receiving a data request from ETL server 140. When data is collected, it is stored and maintained. Batches of data are not overwritten with newly collected data.

Though modules 126-127 and 131 are discussed herein, additional modules may be used to implement the functionality described herein. Modules 126-127 and 131 are intended to be merely exemplary of the many executable modules which may be implemented.

ETL server 140 receives staging data from data collection server 130 and may transform the data to a format more useful to a user. For example, the data transformation may include selecting only certain columns to load into a star format, translating coded values, deriving new calculated values, sorting data, aggregating data, transposing or pivoting data, splitting a column into multiple columns, and other processing. Once data is transformed by ETL server 140, it may be provided to data warehouse 145 for future analytics.

It should be understood that the current approach is not limited to traditional staging-ETL-warehouse approach. This is just one example of the implementation of the present technology. Features like ability to receive contextual data from multiple sources in parallel and stateless mode allows the system to store unstructured and structured data in disparate systems (dynamically creating schema on-the fly) so that an analytical module can explore co-located columnar/key-value records or heavily indexed/compressed files quickly and allow users to mash-up records from various sources, create KPI, perform analytical functions and perform ad-hoc query.

Warehouse database 145 may receive transformed data from ETL server 140 and provide the data to analytics server 150 for processing. When data is loaded into warehouse database 145, the data is stored in a star schema and maintained. Transformed data is not overwritten in warehouse database 145. This allows rollback to previous batches of data if needed. A batch log 147 may be stored at warehouse database 145. The batch log may be updated and maintained to track information about each batch of data and may be used in the rollback of data. The batch log may be stored in table format and may include attributes for each batch such as batch ID, tenant ID, data start date and time, data end date and time, DCS processing status, staging database ID, ETL processing status, and ETL server ID. The DCS processing status and ETL processing status may include not started, in-progress, success and failure. The batch log may be updated by ETL server 140, data collection server 130, and other servers of the system of FIG. 1. Though illustrated as being stored in warehouse database 145, batch log 147 may be stored on another serer or database within the system of FIG. 1.

Analytics server 150 may retrieve transformed data stored in a star schema in data warehouse 145 and perform analytics to the data. The results of the analytics may be provided in the form of charts, graphs, reports or other formats to a user at client device 155.

Though illustrated as one server or one device, each of the servers and clients of the system of FIG. 1 may be implemented using one or more actual or logical machines, servers and client devices. One or more blocks of the system of FIG. 1 may also be combined. Further, though examples of communications are shown using arrows, it is intended and should be understood that each of the servers and clients in the system of FIG. 1 may communicate over network, and therefore with each other.

FIG. 2 is exemplary method for receiving and persisting data. Integration server 125 sends a start signal to the data collection server 130 at step 210. The start signal indicates that data will be collected and sent to the data collection server. The data collection server 130 sends context data to integration server 125 at step 220. The context may be semantic context information including application ID (application from which the streaming data is received), batch ID (the batch associated with the streaming data), a tenant ID (the tenant providing the streaming data), and a time range associated with the collected streaming data.

The integration server receives the raw data at step 230. The raw data may be received from one or more tenants in a multi-tenancy system. Integration server 125 then associates the context to the raw data at step 240. Associating the context to the raw data may include creating and updating a table with context data. Associating context to raw data is discussed in more detail below with respect to FIG. 3. A batch of data is partitioned into sub-sets by integration server 125 at step 250. The streaming data is stateless, and need not be in any particular order. Therefore, the partitions of the batch may be in any order and size.

Integration server 125 sends the batch sub-sets and context data to data collection server 130 in parallel streams at step 260. The data is received and persisted by data collection server 130 at step 270. The batch data may be persisted on many levels. Persisting batch data is discussed in more detail below with respect to the method of FIG. 4. Integration server 125 sends a stop batch signal to data collection server 130. This signals the end of the data collection for the current batch.

FIG. 3 is an exemplary method for associating context with raw data. A batch table is created at step 310. The batch table may be created per batch or for a group of batches. Context data associated with the batch may be inserted into the table at step 320. By inserting context data into the batch table, for example using a metadata schema, the application code is not polluted or altered with extra logic required to manage a lifecycle of a batch of records. Parent-child data associated with the data batch is inserted into the table at step 330. The parent-child data allows for data persisting at data collection server 130.

FIG. 4 is an exemplary method for persisting data. The data collection server 130 persists context information for the incoming batch at step 410. The persisting may be performed for batch ID, tenant ID, application ID, state of the batch, the data source, and other information. Context information for subsets of the batch is then persisted at step 420. The persisting for batch subsets may involve group ID, batch ID, tenant ID, application ID, target entity and schema. Context information for individual records of batch sub-sets is persisted at step 430. Record level persistence may include automatic schema resolution and dynamic data source discovery. Data collection server 130 may persist context information for batch termination at step 440. Batch termination data persistence completes the life cycle of the batch records. The Context is elastic in nature meaning any number of metadata can be added, for example application-category identification, application-identification, geographical location identification, and so on etc.

FIG. 5 is an exemplary method for automatically updating a data mapping architecture. The method of FIG. 5 may provide more detail for step 320 of the method of FIG. 3. Code for fetching application data is updated at step 510. The code may be updated to reflect new fields of data to collect or other information based on changes to the data mapping process. The updated code may be generated by a mapping manager application (not shown) and provided to data collection server 130. Staging schema may be updated at step 520. The staging schema may be updated by the mapping manager application and provided to staging data store 135.

The star schema may be updated at step 530. The star schema may be updated to reflect changes received from a user. Once generated, the star schema can be provided to data warehouse 145 by mapping data manager. Script code can be generated to transform data in staging schema to star schema at step 540. The transforming script may be generated at least in part from column mapping data and provided to ETL server 140 for transforming data. A user interface is updated at step 550. The user interface may be updated to allow users to modify up-to-date schema information and script code, generate reports from the latest schemas, and other functions. User interfaces may be provided through a web browser or other application.

FIG. 6 is an exemplary method for mapping data. The method of FIG. 6 may provide more detail for step 330 of the method of FIG. 3. Data is collected from one or more applications for one or more tenants at step 610. The data collection can be performed by data collection server 130 according to data collection scripts or code provided by mapping manager application. Collected data may then be stored in staging schema at step 620. The staging schema may be provided by mapping manager application. Collected data is then transformed from a staging schema to star schema at step 630. The data transformation may be performed by ETL server 140 by scripts or other code generated by mapping manager application. The star schema data is then stored at step 640 in data warehouse 145.

A user request for an analytics report may be received at step 650. The request may be received from a user at client 155 by analytics server 150. Analytics may be performed on the star schema data at step 660. The analytics may be tenant and application specific. For example, the analytics may determine the sales for each month of the current year for a particular office. A report is then provided from the analytics results at step 670. The result may include a chart, graph, or other presentation of processed data.

FIG. 7 is a block diagram of a device for implementing the present technology. FIG. 7 illustrates an exemplary computing system 700 that may be used to implement a computing device for use with the present technology. System 700 of FIG. 7 may be implemented in the contexts of the likes of servers 110-115, client devices 120 and 155, servers 125, 130, 140 and 150, and databases 135 and 145. The computing system 700 of FIG. 7 includes one or more processors 710 and memory 720. Main memory 720 may store, in part, instructions and data for execution by processor 710. Main memory can store the executable code when in operation. The system 700 of FIG. 7 further includes a storage 730, which may include mass storage and portable storage, antenna 740, output devices 750, user input devices 760, a display system 770, and peripheral devices 780.

The components shown in FIG. 7 are depicted as being connected via a single bus 790. However, the components may be connected through one or more data transport means. For example, processor unit 710 and main memory 720 may be connected via a local microprocessor bus, and the storage 730, peripheral device(s) 780 and display system 770 may be connected via one or more input/output (I/O) buses.

Storage device 730, which may include mass storage implemented with a magnetic disk drive or an optical disk drive, may be a non-volatile storage device for storing data and instructions for use by processor unit 710. Storage device 730 can store the system software for implementing embodiments of the present invention for purposes of loading that software into main memory 710.

Portable storage device of storage 730 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or Digital video disc, to input and output data and code to and from the computer system 700 of FIG. 7. The system software for implementing embodiments of the present invention may be stored on such a portable medium and input to the computer system 700 via the portable storage device.

Antenna 740 may include one or more antennas for communicating wirelessly with another device. Antenna 740 may be used, for example, to communicate wirelessly via Wi-Fi, Bluetooth, with a cellular network, or with other wireless protocols and systems. The one or more antennas may be controlled by a processor 710, which may include a controller, to transmit and receive wireless signals. For example, processor 710 execute programs stored in memory 720 to control antenna 740 transmit a wireless signal to a cellular network and receive a wireless signal from a cellular network.

The system 700 as shown in FIG. 7 includes output devices 750 and input device 760. Examples of suitable output devices include speakers, printers, network interfaces, and monitors. Input devices 760 may include a touch screen, microphone, accelerometers, a camera, and other device. Input devices 760 may include an alpha-numeric keypad, such as a keyboard, for inputting alpha-numeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys.

Display system 770 may include a liquid crystal display (LCD), LED display, or other suitable display device. Display system 770 receives textual and graphical information, and processes the information for output to the display device.

Peripherals 780 may include any type of computer support device to add additional functionality to the computer system. For example, peripheral device(s) 780 may include a modem or a router.

The components contained in the computer system 700 of FIG. 7 are those typically found in computing system, such as but not limited to a desk top computer, lap top computer, notebook computer, net book computer, tablet computer, smart phone, personal data assistant (PDA), or other computer that may be suitable for use with embodiments of the present invention and are intended to represent a broad category of such computer components that are well known in the art. Thus, the computer system 700 of FIG. 7 can be a personal computer, hand held computing device, telephone, mobile computing device, workstation, server, minicomputer, mainframe computer, or any other computing device. The computer can also include different bus configurations, networked platforms, multi-processor platforms, etc. Various operating systems can be used including Unix, Linux, Windows, Macintosh OS, Palm OS, and other suitable operating systems.

The foregoing detailed description of the technology herein has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the technology to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen in order to best explain the principles of the technology and its practical application to thereby enable others skilled in the art to best utilize the technology in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the technology be defined by the claims appended hereto. 

What is claimed is:
 1. A method for streaming and storing data, comprising: automatically generating a context for each application from amongst a plurality of applications that transmitted an initiation message, wherein each context for a particular application is distinct from other context associated with other applications; receiving raw streaming data from the one or more applications; associating a corresponding context data to a batch of the raw data sent from a particular application, wherein the associating includes: creating a batch table, and updating the batch table with the context data associated with the batch of raw data sent from the particular application; and transmitting the batch of raw data and corresponding associated context data to a remote server, wherein the remote server stores the batch of raw data in memory based on the associated context data without further processing of the raw data.
 2. The method of claim 1, further comprising: sending a start batch signal to the remote server; and receiving the context data from the remote server.
 3. The method of claim 1, wherein the batch table includes the context data and a corresponding batch identifier.
 4. The method of claim 1, further comprising associating parent-child information to the batch of raw data.
 5. The method of claim 4, wherein the transmitted batch of raw data configured to be persisted by the remote server based at least in part on the parent-child information.
 6. The method of claim 1, further including partitioning the batch of data into sub-batches.
 7. The method of claim 6, wherein the sub-batches are sent in parallel to the remote server.
 8. A computer readable non-transitory storage medium having embodied thereon a program, the program being executable by a processor to perform a method for streaming and storing data, the method comprising: automatically generating a context for each application from amongst a plurality of applications that transmitted an initiation message, wherein each context for a particular application is distinct from other context associated with other applications; receiving raw streaming data from the one or more applications; associating a corresponding context data to a batch of the raw data sent from a particular application, wherein the associating includes: creating a batch table, and updating the batch table with the context data associated with the batch of raw data sent from the particular application; and transmitting the batch of raw data and corresponding associated context data to a remote server, wherein the remote server stores the batch of raw data in memory based on the associated context data without further processing of the raw data.
 9. The computer readable non-transitory storage medium of claim 8, the method further comprising: sending a start batch signal to the remote server; and receiving the context data from the remote server.
 10. The computer readable non-transitory storage medium of claim 8, wherein the batch table includes the context data and a corresponding batch identifier.
 11. The computer readable non-transitory storage medium of claim 8, the method further comprising associating parent-child information to the batch of raw data.
 12. The computer readable non-transitory storage medium of claim 11, the transmitted batch of raw data configured to be persisted by the remote server based at least in part on the parent-child information.
 13. The computer readable non-transitory storage medium of claim 8, the method further including partitioning the batch of data into sub-batches.
 14. The computer readable non-transitory storage medium of claim 13, wherein the sub-batches are sent in parallel to the remote server.
 15. A system for streaming and storing data, comprising: a memory; a processor; and one or more modules stored in memory and executable by the processor to: automatically generate a context for each application from amongst a plurality of applications that transmitted an initiation message, wherein each context for a particular application is distinct from other context associated with other applications; receive raw streaming data from the one or more applications; associate a corresponding context data to a batch of the raw data sent from a particular application, wherein the associating includes: creating a batch table, and updating the batch table with the context data associated with the batch of raw data sent from the particular application; and the batch of raw data and corresponding associated context data to a remote server, wherein the remote server stores the batch of raw data in memory based on the associated context data without further processing of the raw data.
 16. The system of claim 15, further comprising: sending a start batch signal to the remote server, and receiving the context data from the remote server.
 17. The system of claim 15, wherein the batch table includes the context data and a corresponding batch identifier.
 18. The system of claim 15, the one or more modules further executable to associate parent-child information to the batch of raw data.
 19. The system of claim 18, the transmitted batch of raw data configured to be persisted by the remote server based at least in part on the parent-child information.
 20. The system of claim 15, the one or more modules further executable to partition the batch of data into sub-batches.
 21. The system of claim 20, wherein the sub-batches are sent in parallel to the remote server. 